import React from 'react'
import * as ReactDOM from 'react-dom/client'
import App from './App'
// import './index.css'
import 'antd/dist/antd.css'
import { BrowserRouter as Router } from 'react-router-dom' // as 别名,让后端更好看懂
import { Provider } from 'react-redux'
import store from './store'

// 声明式 UI
// CreateRoot(document.getElementById('root'));
// const container = document.getElementById('root');
// const root = ReactDOM.createRoot(container);
ReactDOM.createRoot(document.getElementById('root')).render(
  <Provider store={store}>
    <Router>
      <App />
    </Router>
  </Provider>
);